/*
 * TraceLog.cpp
 *
 *  Created on: 2012/9/23
 *      Author: apple
 */

#include <wild/WildConfig.h>
#include <wild/TraceLog.h>

using namespace std;

namespace wild
{



TraceLog::TraceLog()
: m_obj(NULL)
{

}

TraceLog::~TraceLog()
{
	SAFE_DEL(m_obj);

}

void TraceLog::Regist( TraceObj* obj )
{
	m_obj = obj;
}

void TraceLog::Log(eLOG_LEVEL lev, std::string msg)
{
	if(m_obj)
	{
		m_obj->LogMsg(lev, msg.c_str());
	}
}


}	//	namespace wild
